/**
 * 
 */
package soa.security.ws;

import javax.jws.WebParam;
import javax.jws.WebService;

import soa.security.exception.OrganizationException;

/**
 * @author CreGu
 *
 */
@WebService
public interface OrganizationService {

	/**
	 * 子机构信息新增
	 * 
	 * @param organizationId
	 * @param organization
	 * @return
	 * @throws OrganizationException
	 */
	public boolean addSubOrganization(
			@WebParam(name = "organizationId") String organizationId,
			@WebParam(name = "organization") String organization)
			throws OrganizationException;

	/**
	 * 机构信息修改
	 * 
	 * @param organizationId
	 * @param organization
	 * @return
	 * @throws OrganizationException
	 */
	public boolean updateOrganization(
			@WebParam(name = "organization") String organization)
			throws OrganizationException;

	/**
	 * 获取机构内的所有子机构信息
	 * 
	 * @param organizationId
	 * @return
	 * @throws OrganizationException
	 */
	public String allSubOrganizations(
			@WebParam(name = "organizationId") String organizationId)
			throws OrganizationException;

	/**
	 * 获取指定机构信息
	 * 
	 * @param organizationId
	 * @return
	 * @throws OrganizationException
	 */
	public String getOrganization(
			@WebParam(name = "organizationId") String organizationId)
			throws OrganizationException;
	
	/**
	 * 获取所有机构
	 * @return String
	 * @throws OrganizationException
	 * @author CY
	 */
	public String allOrganization() throws OrganizationException;
}
